package com.bff.gaia.client.combine;

import com.bff.gaia.api.common.Plan;

import java.util.List;

//系统时间
public class Qplan {

	private PlanAndInfo pai;
	private long time;
	private boolean type = false;
	private long fileSize;
	private long ramSize;
	private int dept;
	private int numberOfGlobleOperator;
	private int[][] operators;
	private int parallizer;
	private List<String> classPath;

	/*
	* 处理的文件的路径集合  作业提交的时间
	* */
	public Qplan(Plan plan){
		pai = new PlanAndInfo(plan);
		System.out.println("所有Plan的信息属性已经获取完毕，在planAndInformation方法中");
		this.time = System.currentTimeMillis();
		this.type = pai.isMergeType();

		this.fileSize = pai.getFizeSize();
		this.ramSize = pai.getRamSize();
		this.dept = pai.getDataFlowDept();
		this.numberOfGlobleOperator = pai.getWorkComplex();
		this.operators = pai.getOperatorNumber();
		this.parallizer = pai.getMaxParallizer();
}

	public PlanAndInfo getPai() {
		return pai;
	}

	public boolean isType() {
		return type;
	}

	public long getTime() {
		return time;
	}

	public void setTime(long time) {
		this.time = time;
	}
	public Plan getPlan(){
		return pai.getPlan();
	}

	public long getFileSize() {
		return fileSize;
	}

	public int getDept() {
		return dept;
	}

	public int getNumberOfGlobleOperator() {
		return numberOfGlobleOperator;
	}

	public int[][] getOperators() {
		return operators;
	}

	public int getParallizer() {
		return parallizer;
	}


	public void setPai(PlanAndInfo pai) {
		this.pai = pai;
	}

	public void setType(boolean type) {
		this.type = type;
	}

	public void setFileSize(long fileSize) {
		this.fileSize = fileSize;
	}

	public long getRamSize() {
		return ramSize;
	}

	public void setRamSize(long ramSize) {
		this.ramSize = ramSize;
	}

	public void setDept(int dept) {
		this.dept = dept;
	}

	public void setNumberOfGlobleOperator(int numberOfGlobleOperator) {
		this.numberOfGlobleOperator = numberOfGlobleOperator;
	}

	public void setOperators(int[][] operators) {
		this.operators = operators;
	}

	public void setParallizer(int parallizer) {
		this.parallizer = parallizer;
	}

	public List<String> getClassPath() {
		return classPath;
	}

	public void setClassPath(List<String> classPath) {
		this.classPath = classPath;
	}
}